import request from "@/utils/request";

export function getProductPrices(paramters) {
    return request({
        url: "api/v1/sales/product-prices",
        method: "get",
        params: paramters,
        businessServer: true,
    });
}

export function getProductPrice(id) {
    return request({
        url: "api/v1/sales/product-prices/" + id,
        method: "get",
        businessServer: true,
    });
}

export function addProductPrice(data) {
    return request({
        url: "api/v1/sales/product-prices",
        method: "post",
        data: data,
        businessServer: true,
    });
}

export function updateProductPrice(data) {
    return request({
        url: "api/v1/sales/product-prices",
        method: "put",
        data: data,
        businessServer: true,
    });
}

export function deleteProductPrice(id) {
    return request({
        url: "api/v1/sales/product-prices/" + id,
        method: "delete",
        businessServer: true,
    });
}
